﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Data;

namespace Duson.DAOSQLServer.Salary
{
    using DusonFramework.DataAccess.Utility;

    public class SalaryBLL
    {
        ISalary Salary = (SalaryDAL)SQLFactory.CreateInstance("Salary.SalaryDAL");

        public DataSet GetDataByPage(int pageIndex, int pageSize)
        {
            return Salary.GetDataByPage("Salary", "*", "", "Money", 1, pageIndex, pageSize);
            //return Salary.GetDataByPage("Salary", "*", "", "Money desc", 1, pageIndex, pageSize);
        }

        public int GetCount()
        {
            return Salary.GetCount();
        }
    }
}
